<?php

namespace app\serverbankcard\validate;
use \app\manage\validate\BaseValidate;

/**
 * @author:      李颖
 * @DateTime:    2017-08-30 10:40:31
 * @Description: 银行卡管理
 */

 class Bankcard extends BaseValidate{


 	protected $rule = [
 		'id' => ['integer', 'gt'=>0],
 		'user_id' => ['integer', 'gt'=>0],
 		'account' => ['min'=>2],
 		'name' => ['min'=>2],
 		'name_en' => ['in'=>'CCB,ABC,ICBC,BOC,OTHER'],
 		'number' => ['min'=>15,'max'=>19],
 		'status' => ['in'=>'0,1,2'],
 	];

 	protected $message = [
 	];

 	protected $scene = [
 		'audit' => ['id', 'status' => ['in'=>'1,2']],
 	];
 }